<?php
/**
 * 区域表单字段
 */

namespace App\Console\AdminFormFillByFormId\FieldMakers;



class AppProjectTypeFormFieldMaker extends BaseFormFieldMaker {
    const FORM_ID         = 3;
    const FORM_TITLE      = '小程序/公众号项目类型';
    const FORM_TABLE_NAME = 'app_project_type';

    protected function _getFormData() {
        $this->formId = self::FORM_ID;

        return [
            'id'                   => self::FORM_ID,
            'title'                => self::FORM_TITLE,
            'table_name'           => self::FORM_TABLE_NAME,
            self::FIELD_KEY        => [
                [
                    'title'       => '编号',
                    'field_name'  => 'id',
                    'field_type'  => 'text',
                    'props'       => [
                        'display_edit'   => 0,
                        'display_create' => 0,
                        'editable'       => 0,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                    ],
                    'validate'    => '[]',
                    'order'       => 1,
                    'display'     => 1,
                    'searchable'  => 0,
                    'show_column' => 1,
                ],
                [
                    'title'       => '名称',
                    'field_name'  => 'name',
                    'field_type'  => 'text',
                    'props'       => [
                        'display_edit'   => 1,
                        'display_create' => 1,
                        'editable'       => 1,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                    ],
                    'validate'    => [],
                    'order'       => 2,
                    'display'     => 1,
                    'searchable'  => 0,
                    'show_column' => 1,
                ],
                [
                    'title'       => '备注',
                    'field_name'  => 'remark',
                    'field_type'  => 'text',
                    'props'       => [
                        'display_edit'   => 1,
                        'display_create' => 1,
                        'editable'       => 1,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                        'default_value'  => ''
                    ],
                    'validate'    => [],
                    'order'       => 3,
                    'display'     => 1,
                    'searchable'  => 0,
                    'show_column' => 1,
                ],
                [
                    'title'       => '小程序的自定义配置模板json格式',
                    'field_name'  => 'ext_json',
                    'field_type'  => 'text',
                    'props'       => [
                        'display_edit'   => 1,
                        'display_create' => 1,
                        'editable'       => 1,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                        'default_value'  => ''
                    ],
                    'validate'    => [],
                    'order'       => 3,
                    'display'     => 1,
                    'searchable'  => 0,
                    'show_column' => 1,
                ],
                [
                    'title'       => '小程序的设置服务器域名',
                    'field_name'  => 'server_domain',
                    'field_type'  => 'textarea',
                    'props'       => [
                        'display_edit'   => 1,
                        'display_create' => 1,
                        'editable'       => 1,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                    ],
                    'validate'    => [],
                    'order'       => 3,
                    'display'     => 1,
                    'searchable'  => 0,
                    'show_column' => 1,
                ],
                [
                    'title'       => '小程序的设置业务域名',
                    'field_name'  => 'webviewdomain',
                    'field_type'  => 'textarea',
                    'props'       => [
                        'display_edit'   => 1,
                        'display_create' => 1,
                        'editable'       => 1,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                    ],
                    'validate'    => [],
                    'order'       => 3,
                    'display'     => 1,
                    'searchable'  => 0,
                    'show_column' => 1,
                ],
                [
                    'title'       => '审核项列表',
                    'field_name'  => 'wx_submit_audit_item_list',
                    'field_type'  => 'textarea',
                    'props'       => [
                        'display_edit'   => 1,
                        'display_create' => 1,
                        'editable'       => 1,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                    ],
                    'validate'    => [],
                    'order'       => 3,
                    'display'     => 1,
                    'searchable'  => 0,
                    'show_column' => 1,
                ],
                [
                    'title'       => '创建时间',
                    'field_name'  => 'created_at',
                    'field_type'  => 'datetime',
                    'props'       => [
                        'display_edit'   => 0,
                        'display_create' => 0,
                        'editable'       => 0,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                    ],
                    'validate'    => [],
                    'order'       => 8,
                    'display'     => 1,
                    'searchable'  => 1,
                    'show_column' => 1,
                ],
                [
                    'title'       => '更新时间',
                    'field_name'  => 'updated_at',
                    'field_type'  => 'datetime',
                    'props'       => [
                        'display_edit'   => 0,
                        'display_create' => 0,
                        'editable'       => 0,
                        'resizable'      => 1,
                        'sortable'       => 0,
                        'disabled'       => 1,
                    ],
                    'validate'    => [],
                    'order'       => 9,
                    'display'     => 1,
                    'searchable'  => 1,
                    'show_column' => 1,
                ],
            ],
            self::FILTER_GROUP_KEY => [
                [
                    'title'      => '全部',
                    'can_edit'   => 0,
                    'is_system'  => 1,
                    'uid'        => -1,
                    'order'      => 1,
                    'created_at' => $this->_mTime,
                    'updated_at' => $this->_mTime,
                    'conditions' => [],
                ],
            ],
        ];
    }
}